*Alternative specifications: fixed effects models

local demog female c.age c.age2 c.educat c.inc4 c.hisp c.perc_hispanic c.perc_hispanic2
local econ c.econ_country c.econ_house
local feeling c.ft_hisp c.ft_as
local pol i.pid3 i.ideo3
local X reform_support5 w2 w3
local X1 immvote w2 w3
local inter whiteevan w2_whiteevan w3_whiteevan


*Table A8 - Full sample
eststo clear
qui: xtreg reform_support5 w2_whiteevan w3_whiteevan if insample_support==1 [aw=finalweight1], fe
est store a1
qui: xtreg reform_support5 w2_whiteevan w3_whiteevan age w2#(`demog') w3#(`demog') if insample_support==1  [aw=finalweight1], fe
est store a2
qui: xtreg reform_support5 w2_whiteevan w3_whiteevan econ_country w2#(`demog' `econ') w3#(`demog' `econ') if insample_support==1  [aw=finalweight1], fe
est store a3
qui: xtreg reform_support5 w2_whiteevan w3_whiteevan ft_hisp w2#(`demog' `econ' `feeling' ) w3#(`demog' `econ' `feeling' ) if insample_support==1  [aw=finalweight1], fe
est store a4
qui: xtreg reform_support5 w2_whiteevan w3_whiteevan pid3 w2#(`demog' `econ' `feeling' `pol') w3#(`demog' `econ' `feeling' `pol') if insample_support==1  [aw=finalweight1], fe
est store a5

esttab a1 a2 a3 a4 a5 using "~/Dropbox/Immigration/JOP Results/TAPS/tables/support_reform_fe_geocode.tex", ///
keep(w2_whiteevan w3_whiteevan _cons) ///
star(* .10 ** 0.05) obslast nogaps ///
sfmt(4) se(2) b(2) replace booktabs compress label r2 ///
title("White evangelicals became more supportive of immigration reform over time (alternative specification 1)")  ///
nomtitles ///
coeflabels(w2_whiteevan "Wave 2 * White evangelical" w3_whiteevan "Wave 3 * White evangelical" _cons "Intercept") ///
indicate( "Demographics = age" "Perceptions of economy = *econ_country*" "Feelings toward immigrant groups = *ft_hisp*" "Politics = *pid3*") ///
nonotes


*Table A9 - Republican subsample
preserve
keep if rep==1
eststo clear
qui: xtreg reform_support5 w2_whiteevan w3_whiteevan if insample_support==1 [aw=finalweight1], fe
est store a1
qui: xtreg reform_support5 w2_whiteevan w3_whiteevan age w2#(`demog') w3#(`demog') if insample_support==1  [aw=finalweight1], fe
est store a2
qui: xtreg reform_support5 w2_whiteevan w3_whiteevan econ_country w2#(`demog' `econ') w3#(`demog' `econ') if insample_support==1 [aw=finalweight1], fe
est store a3
qui: xtreg reform_support5 w2_whiteevan w3_whiteevan ft_hisp w2#(`demog' `econ' `feeling' ) w3#(`demog' `econ' `feeling' ) if insample_support==1  [aw=finalweight1], fe
est store a4
qui: xtreg reform_support5 w2_whiteevan w3_whiteevan pid3 w2#(`demog' `econ' `feeling' `pol') w3#(`demog' `econ' `feeling' `pol') if insample_support==1   [aw=finalweight1], fe
est store a5

esttab a1 a2 a3 a4 a5 using "~/Dropbox/Immigration/JOP Results/TAPS/tables/support_reform_rep_fe_geocode.tex", ///
keep(w2_whiteevan w3_whiteevan _cons) ///
star(* .10 ** 0.05) obslast nogaps ///
sfmt(4) se(2) b(2) replace booktabs compress label r2 ///
title("White evangelical Republicans became more supportive of immigration reform over time (Republican subsample only. alternative specification)")  ///
nomtitles ///
coeflabels(w2_whiteevan "Wave 2 * White evangelical" w3_whiteevan "Wave 3 * White evangelical" _cons "Intercept") ///
indicate( "Demographics = age" "Perceptions of economy = *econ_country*" "Feelings toward immigrant groups = *ft_hisp*" "Politics = *pid3*") ///
nonotes
restore
